home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Multimedia Viewer How-To CD
/
Microsoft Multimedia Viewer How-To CD.iso
/
mvsample
/
progsamp
/
eplist
/
eplist.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-21
|
2KB
|
77 lines
// EPLIST.H
#define ID_LISTBOX 1
#define LISTERR_NOVWRINFO 100
#define LISTERR_MEMORY 101
#define LISTERR_SYNTAX 102
#define LISTERR_CREATEFAILED 103
#define LISTERR_BAGGAGE 104
#define LISTERR_NOVWR 105
#define LISTERR_TOOMANY 106
#define RGBBlack RGB(0, 0, 0)
#define RGBWhite RGB(255, 255, 255)
#define RGBLtGray RGB(192,192,192)
#define RGBDkGray RGB(84,84,84)
#define MAX_LIST 100
typedef struct
{
int iWidth, iHeight, iLines;
LPSTR lpszText;
LPSTR alpszText[MAX_LIST];
LPSTR alpszCommand[MAX_LIST];
int nCurSel, nTop, nItems;
HWND hwndScroll, hwndPane;
HFONT hfontLB;
int iLineSpace;
char szAuthorData[128];
char szListFilename[13];
char szFont[LF_FACESIZE];
int iFontSize;
} LISTINFO, FAR *LPLISTINFO;
extern HANDLE ghModule;
// For MVBTASK module
#define MAX_WINDOWS 10
typedef struct
{
char szMVB[_MAX_PATH];
VWR vwr;
LPLISTINFO alpLI[MAX_WINDOWS];
} VWRINFO, FAR *LPVWRINFO;
void ShowMessage(HWND hWnd, int nMessage, int nIcon);
BOOL CALLBACK LibMain(HANDLE hModule, int cbHeap, LPSTR lpchCmdLine);
int AddLI(LPVWRINFO lpVwrInfo, LPLISTINFO lpLI);
void RemoveLI(LPVWRINFO lpVwrInfo, LPLISTINFO lpLI);
LPLISTINFO FindLI(LPVWRINFO lpVwrInfo, LPSTR lpszAuthor);
void FreeLI(LPLISTINFO lpLI);
BOOL GetPaneSize(LPLISTINFO lpLI, HDC hdc, LPPOINT lppt);
void PrintPane(LPLISTINFO lpLI, LPRENDERINFO lpRI);
LONG CALLBACK PaneListProc(HWND hwnd, UINT wMsg, UINT wParam, LONG lParam);
long ReadBaggageFile(LPSTR lpszMVB, LPSTR lpszBagFile, LPSTR lpszText, long lcbMax);
int ReadCmdList(LPSTR lpszMVB, LPLISTINFO lpLI);
int InitPaneAspect(HWND hwnd, LPLISTINFO lpLI, int cx, int cy);
int DoCommand(LPVWRINFO lpVwrInfo, LPSTR lpszCommand);
int InitPane(HWND hwnd, LPEWDATA lpew, LPLISTINFO FAR *lplpLI, int cx, int cy);
LONG CALLBACK LDLLHandler(UINT msg, LPARAM lParam1, LPARAM lParam2);